﻿@model KinoDB.Viewmodels.Internal.CreateShow.CreateShowViewModel

@{
    ViewBag.Title = "CreateShow";
}

<h2>CreateShow</h2>

@using (Html.BeginForm()) 
{
    @Html.AntiForgeryToken()
    
    <div class="form-horizontal">
        <h4>Vorstellung</h4>
        <hr />
        @Html.ValidationSummary(true)
        
        <div class="form-group">
            @Html.Label("Film", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownListFor(model => model.SelectedMovie, new SelectList(Model.MovieDictionary, "Key", "Value", Model.SelectedMovie))
            </div>
        </div>

        <div class="form-group">
            @Html.Label("Kinosaal", new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.DropDownListFor(model => model.SelectedRoom, new SelectList(Model.RoomDictionary, "Key", "Value", Model.SelectedRoom))
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Startzeit, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Startzeit)
                @Html.ValidationMessageFor(model => model.Startzeit)
            </div>
        </div>

        <div class="form-group">
            @Html.LabelFor(model => model.Kartenpreis, new { @class = "control-label col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(model => model.Kartenpreis)
                @Html.ValidationMessageFor(model => model.Kartenpreis)
            </div>
        </div>

        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Create" class="btn btn-default" />
            </div>
        </div>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "ShowManagement")
</div>
